/*
 * @Author: cgl
 * @Date: 2023-04-20 09:49:21
 * @LastEditors: cgl
 * @LastEditTime: 2023-06-09 10:07:12
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\person\entrustEquipmentType.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询委托单位设备类型分页列表
export function entrustEquipmentTypeList(data) {
  return request({
    url: '/basic/entrust/equipmentType/list',
    method: 'post',
    data,
  })
}
// 导出委托单位设备类型列表
export function entrustEquipmentTypeExport(data) {
  return request({
    url: `/basic/entrust/equipmentType/export`,
    method: "post",
    data,
  });
}
// 查询委托单位设备类型列表（下拉框）
export function entrustEquipmentTypeListing(params) {
  return request({
    url: '/basic/entrust/equipmentType/listing',
    method: 'get',
    params,
  })
}
// 获取委托单位设备类型详细信息
export function entrustEquipmentTypeDetail(entrustEquipmentTypeId) {
  return request({
    url: '/basic/entrust/equipmentType/getInfo/' + entrustEquipmentTypeId,
    method: 'get'
  })
}
// 新增委托单位设备类型
export function entrustEquipmentTypeAdd(data) {
  return request({
    url: `/basic/entrust/equipmentType/add`,
    method: "post",
    data,
  });
}
// 修改委托单位设备类型
export function entrustEquipmentTypeEdit(data) {
  return request({
    url: '/basic/entrust/equipmentType/edit',
    method: 'post',
    data,
  })
}
// 删除委托单位设备类型
export function entrustEquipmentTypeDelete(entrustEquipmentTypeIds) {
  return request({
    url: '/basic/entrust/equipmentType/remove/' + entrustEquipmentTypeIds,
    method: 'get'
  })
}
// 查看检测项目表格
export function testQualityControl(qualityControlCode) {
  return request({
    url: `/basic/entrust/testQualityControlDetails/getByCode/${qualityControlCode}`,
    method: 'get'
  })
}